import WFSClient from './src/wfs.js'; // 确保路径正确
import Utils  from './src/utils.js';
// 实例化WFSClient
const wfsClient = new WFSClient('http://127.0.0.1/SG/default/streamer.ashx');

// 调用getFeature方法并打印结果
async function testGetFeature() {
  try {
    const filter = Utils.createFilter('DKMC', '地块20');
    const data = await wfsClient.getFeature('ZYTB.409774', filter);
    console.log(data);
  } catch (error) {
    console.error('Error fetching feature:', error);
  }
}

// 调用测试函数
testGetFeature();
